/*
 * 用户基础类
 * @author: huangzong
 */
const C = require('../common/common.js')

class Account {
    constructor () {
    }

    /*
   * 打开基础设置页面
   */
    async openAddAccount (row) {
        return await C.openBrowserWindow('/addAccount', row, {
            transparent: true,
            frame: false,
            // openDevTools: true,
            width: 700,
            height: 500,
            useSpa: true,
            spaModel: 'shop'
        })
    }

    /*
   * 编辑账户信息
   */
    async addEditAccount (data) {
        return await C.ajax('/shop/account/addedit', data, 'post')
    }
}

module.exports = new Account()